home *** CD-ROM | disk | FTP | other *** search
- global gOPTPos, gOptSaveIntro, gOptSaveRandom, gOptSaveIdle, gOptSaveTRPop, gOptSaveMAFlip, gOptSaveCRAnim, gOptSaveBigVR, gOptSaveVolume, gTHReopen, gSICurrMovie
-
- on startMovie
- tell the stage
- pause()
- end tell
- set the exitLock to 1
- set the visible of window "opt" to 1
- set gOPTPos to [198, 186, 174, 162, 150, 137, 125, 114, 102, 90]
- puppetSprite(12, 1)
- set gOptSaveIntro to not (not value(HSStateGet("opt", "Intro")))
- set gOptSaveRandom to not (not value(HSStateGet("opt", "Random")))
- set gOptSaveIdle to not (not value(HSStateGet("opt", "Idle")))
- set gOptSaveTRPop to not (not value(HSStateGet("opt", "TRPop")))
- set gOptSaveMAFlip to not (not value(HSStateGet("opt", "MAFlip")))
- set gOptSaveCRAnim to not (not value(HSStateGet("opt", "CRAnim")))
- set gOptSaveBigVR to not (not value(HSStateGet("opt", "BigVR")))
- set gOptSaveVolume to GetVolume()
- set the hilite of cast "Intro Check" to gOptSaveIntro
- set the hilite of cast "Random Check" to gOptSaveRandom
- set the hilite of cast "Idle Check" to gOptSaveIdle
- set the hilite of cast "Balloon Check" to gOptSaveTRPop
- set the hilite of cast "Flip Check" to gOptSaveMAFlip
- set the hilite of cast "CR Anim Check" to gOptSaveCRAnim
- set the hilite of cast "VR Check" to gOptSaveBigVR
- placeMarker(GetVolume())
- end
-
- on placeMarker aPos
- if aPos < 1 then
- set aPos to 1
- else
- if aPos > 10 then
- set aPos to 10
- end if
- end if
- set vY to getAt(gOPTPos, aPos)
- set the locV of sprite 12 to vY
- updateStage()
- end
-
- on yToPos aY
- if aY > getAt(gOPTPos, 1) then
- return 1
- end if
- repeat with vI = 1 to 9
- if (aY <= getAt(gOPTPos, vI)) and (aY > getAt(gOPTPos, vI + 1)) then
- return vI
- end if
- end repeat
- return 10
- end
-
- on updateValues
- global gSIPPWrite, gSICurrMovie, gMAflip, MAflavor, MAmenuList, gMAmenu, gMALev
- HSStatePut("opt", "Intro", string(the hilite of cast "Intro Check"))
- HSStatePut("opt", "Random", string(the hilite of cast "Random Check"))
- HSStatePut("opt", "Idle", string(the hilite of cast "Idle Check"))
- HSStatePut("opt", "TRPop", string(the hilite of cast "Balloon Check"))
- HSStatePut("opt", "MAFlip", string(the hilite of cast "Flip Check"))
- HSStatePut("opt", "CRAnim", string(the hilite of cast "CR Anim Check"))
- HSStatePut("opt", "BigVR", string(the hilite of cast "VR Check"))
- set vDummy to gSIPPWrite(mCall, "VR", "Resolution", string(not (the hilite of cast "VR Check")), "QTW.INI")
- if gSICurrMovie = "ma" then
- tell the stage
- set gMAflip to value(HSStateGet("opt", "MAFlip"))
- if gMAflip = 1 then
- set MAflavor to getAt(MAmenuList, 2)
- set gMAmenu to the number of cast string(getAt(MAflavor, gMALev))
- end if
- if gMAflip = 0 then
- set MAflavor to getAt(MAmenuList, 4)
- set gMAmenu to the number of cast string(getAt(MAflavor, gMALev))
- end if
- put "DUCK" && gMAmenu && string(getAt(MAflavor, gMALev))
- end tell
- end if
- end
-
- on restoreValues
- global gSIPPWrite
- HSStatePut("opt", "Intro", string(gOptSaveIntro))
- HSStatePut("opt", "Random", string(gOptSaveRandom))
- HSStatePut("opt", "Idle", string(gOptSaveIdle))
- HSStatePut("opt", "TRPop", string(gOptSaveTRPop))
- HSStatePut("opt", "MAFlip", string(gOptSaveMAFlip))
- HSStatePut("opt", "CRAnim", string(gOptSaveCRAnim))
- HSStatePut("opt", "BigVR", string(gOptSaveBigVR))
- SetVolume(gOptSaveVolume)
- set vDummy to gSIPPWrite(mCall, "VR", "Resolution", string(not gOptSaveBigVR), "QTW.INI")
- end
-
- on optQuit
- if gOptSaveBigVR <> the hilite of cast "VR Check" then
- set gTHReopen to 1
- end if
- tell the stage
- continue()
- end tell
- forget(window "opt")
- end
-